package com.zd.common.bean.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.zd.common.common.annotation.Column;

/**
 * 景区票类型实体类
 * 
 * @author lishi
 * @date 2018年11月7日 下午4:40:24
 */
public class TicketInfo extends BaseModel {
	private Integer id;
	private Integer scenicSpotId; //景区ID
	private String name; //票名字
	private int price; //票价格（单位分）
	private int minimumNumber = 1; //购票最少人数
	private int verifyType = 1; //验票方式（1-一票一刷  2-根据购票人数一票多刷  3-无限制一票多刷）
	private String descript; //票说明
	private String img; //票面图片展示
	private String thumbImg; //缩略图
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date startTime; //票销售时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endTime; //票销售时间
	private Integer effectiveTime; //购买票以后有效时间（单位：天）
	private int status = 1; //状态（-1-删除  0-无效 -1-有效）
	private Date createTime;
	private Date updateTime;
	private Double childRate; //儿童票折扣

	@Column
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column
	public Integer getScenicSpotId() {
		return scenicSpotId;
	}

	public void setScenicSpotId(Integer scenicSpotId) {
		this.scenicSpotId = scenicSpotId;
	}

	@Column
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column
	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	@Column
	public int getMinimumNumber() {
		return minimumNumber;
	}

	public void setMinimumNumber(int minimumNumber) {
		this.minimumNumber = minimumNumber;
	}

	@Column
	public int getVerifyType() {
		return verifyType;
	}

	public void setVerifyType(int verifyType) {
		this.verifyType = verifyType;
	}

	@Column
	public String getDescript() {
		return descript;
	}

	public void setDescript(String descript) {
		this.descript = descript;
	}

	@Column
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	@Column
	public String getThumbImg() {
		return thumbImg;
	}

	public void setThumbImg(String thumbImg) {
		this.thumbImg = thumbImg;
	}

	@Column
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	@Column
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Column
	public Integer getEffectiveTime() {
		return effectiveTime;
	}

	public void setEffectiveTime(Integer effectiveTime) {
		this.effectiveTime = effectiveTime;
	}

	@Column
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Column
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column
	public Double getChildRate() {
		return childRate;
	}

	public void setChildRate(Double childRate) {
		this.childRate = childRate;
	}
}
